package csdn.meiju.li01;
//枚举类的测试类
public class Test {
    public static void main(String[] args) {
        //实例化枚举类的对象
        //Gender gender3=Gender.BOY;
        //枚举对象的取值只能是枚举元素
        //枚举定义了几个就只有几个
        Gender gender1=Gender.MALE;
        Gender gender2=Gender.FEMALE;
        System.out.println(gender1);
        System.out.println(gender2);
    }
}
